package com.lnu.information.fly;

import com.lnu.information.fly.FlyBehavior;
import com.lnu.information.fly.TakeOffBehavior;

/**
 * @author : jian.zhang-2
 * @description:
 * @date : Create in 3:15 PM 2022/4/21
 * @modified By :
 */
abstract class AirCraft {
    protected FlyBehavior flyBehavior; //飞行
    protected TakeOffBehavior takeOffBehavior; //起飞
    public void fly(){
        flyBehavior.fly();
    }
    public void takeoff(){
        takeOffBehavior.takeOff();
    }
}
